/**
 * desc: 消息接口
 */

import request from '@/static/uitls/request.js'

// 首次提交订单
const sendOrder = data => {
	return request({
		url: '/api/v1/order/submit',
		method: 'POST',
		data
	})
}

// 订单支付回调
const checkNotify = order_no => {
	return request({
		url: '/api/v1/order/notify',
		method: 'POST',
		data:{
			order_no:order_no
		}
	})
}

// 我的订单支付
const payAgain = data => {
	return request({
		url: '/api/v1/order/pay',
		method: 'POST',
		data
	})
}

module.exports = {
	sendOrder,
	checkNotify,
	payAgain
}
